/**
 * 
 */
package com.desksoft.ecommerce.constants;

import com.desksoft.ecommerce.constants.logistics.SetConstants;
import com.desksoft.utility.resource.ResourceUtil;

/***************************************
 * 版权所有：杭州迪科软件 保留所有权利
 * 创建日期: 
 * 创建作者：yejw
 * 文件名称：
 * 版本：
 * 功能：
 * 最后修改时间：
 * 修改记录：
 *****************************************/
public interface Constants {

	/**
     * 邮件附件发送方式 默认
     */
    public final static byte MAIL_SEND_TYPE_DEFAULT = 0;
    
    /**
     * 邮件附件发送方式 地址
     */
    public final static byte MAIL_SEND_TYPE_ATTACH = 1;
    
    /**
     * COOKIE用户名称前缀
     */
    public static final String COOKIE_USER = "DS_COOKIE_ID";
    
    /**
     * UTF-8
     */
    public static final String UTF8 = "UTF-8";
    
    /*
     * 商品图片默认图片
     * 
     * **/
    public  static final String sdefaultimg = "/productimgs/s_default.jpg";
    public  static final String tdefaultimg = "/productimgs/t_default.jpg";
    public  static final String ddefaultimg = "/productimgs/d_default.jpg";
    public  static final String defaultimg = "/productimgs/default.jpg";
    
    /**
     * 默认分隔符
     */
    public static final String SEPARATOR = "@";
    
    /**
     * 默认KEY
     */
    public static final String KEY = "logisticsdesksoft";
    
    public static final String VENDOR_STORECODE = 
    	ResourceUtil.getSystemResource().getProperty("desksoft.default.vendorstorecode", "0000");
    
    public static final String HUASHANG_USER_ID = 
    	ResourceUtil.getSystemResource().getProperty("desksoft.default.huashang.userid", "1000");
    
    /**
     * 物流总部 StoreCode
     */
    public static final String STORE_HQ = "0000";
    
    /**
	 * 默认用户ID
	 */
	public static final String DEFAULT_USER_ID = 
		ResourceUtil.getSystemResource().getProperty("desksoft.default.userid", "0000");
	
	/**
	 * 默认用户组ID
	 */
	public static final String DEFAULT_GROUP_ID = SetConstants.SYSTEM_TYPE.STORE;
	
	/**
	 * 供应链用户组ID
	 */
	public static final String DEFAULT_VENDOR_GROUP_ID = SetConstants.SYSTEM_TYPE.VENDOR;
	
	/**
	 * 手机平台用户组ID
	 */
	public static final String DEFAULT_SALE_GROUP_ID = SetConstants.SYSTEM_TYPE.SALE;
	
	/**
	 * 华商用户组ID
	 */
	public static final String DEFAULT_INTER_GROUP_ID = SetConstants.SYSTEM_TYPE.INTER;
	
	/**
	 * 华商OMS用户组ID
	 */
	public static final String DEFAULT_OMS_INTER_GROUP_ID = SetConstants.SYSTEM_TYPE.OMS;

	/**
	 * 静态资源服务地址
	 */
	public static final Object STATIC_SERVICE = 
		ResourceUtil.getServiceResource().getProperty("remote.static.address", "http://localhost:8080/static");
	
	/**
	 * 默认表格列宽
	 */
	public static final int DEFAULT_COLUMN_WIDTH = 
		Integer.parseInt(ResourceUtil.getServiceResource().getProperty("default.table.column.width", "120"));
	
	/**
	 * 站点信息缓存KEY
	 */
	public static final String MALL_SITE_INFO_KEY = "MALL_SITE_INFO_KEY";
	
	/**
	 * Template URI Mapping Holder Key
	 */
	public final static String TPL_MAPPING_HOLDER_KEY = "tpl_mapping_holder_key";
	
	/**
	 * 系统登录类型：B2B
	 */
	public static final String SYS_TYPE_B2B = "PC_B2B";
	
	/**
	 * 系统登录类型：B2C
	 */
	public static final String SYS_TYPE_B2C = "PC_B2C";
	/**
	 * 组件放在缓存中的key前缀
	 */
	public static final String MALL_COMPONET_SETTING_CACHE_KEY = "mall_componet_setting_cache_key_" ;
	/**
	 * 地区编码的key
	 */
	public static final String ZONE_CODE_CACHE_KEY = "zone_code_cache_key";
	/**
	 * kissy 验证规则
	 */
	public static final String MALL_COMPONET_KISSYVALI_RULES__KEY = "mall_componet_kissyvali_rules_key_" ;
	/**
	 * 帮助中心的文章分类放在缓存中的key
	 */
	public static final String MALL_HELPCODE_CACHE_KEY = "mall_helpcode_cache_key" ;
	/**
	 * 帮助中心的文章分类相应下的文章名称放在缓存中的key
	 */
	public static final String MALL_HELPINFOTITLE_CACHE_KEY = "mall_helpinfotitle_cache_key" ;

	/**
	 * Mall项目用户信息key
	 */
	public static final String MALL_LOGIN_CACHE_KEY = "mall_login_cache_key_" ;

	
	/**
	 * 购物车商品缓存前缀
	 */
	public static final String MEM_CARTSHOP_KEY = "MEM_CARTSHOP_KEY_";
	
	/**
	 * 购物车促销缓存前缀
	 */
	public static final String MEM_PROMOTION_KEY = "MEM_PROMOTION_KEY_";
	
	/**
	 * 订单相关信息缓存前缀
	 */
	public static final String MEM_DEMANDH_KEY = "MEM_DEMANDH_KEY_";
	
	/**
	 * 退货商品信息相关缓存前缀
	 */
	public static final String MEM_RETURNITEM_KEY ="MEM_RETURNITEM_KEY";
	
	/**
	 * 退货详情前缀
	 */
	public static final String MEM_RETURNASKDETAIL_KEY ="MEM_RETURNASKDETAIL_KEY";
	
	/**
	 * 自选门店的地区前缀
	 */
	public static final String MEM_STORE_KEY = "MEM_STORE_KEY_";
	
	/**
	 * 发货数标准
	 */
	public static final String MEM_DISTNORM_KEY = "MEM_DISTNORM_KEY_";
	
	public static final String MEM_PRODUCTINTOR_KEY = "MEM_PRODUCTINTOR_KEY_";

	/**
	 * 订单相关金额缓存前缀
	 */
	public static final String MEM_USABLE_KEY = "MEM_USABLE_KEY_";
   

	/**
	 * （后台）批量下架功能缓存前缀
	 */
	public static final String UNDERWAY_BATCH_NEXT_FRAME = "UNDERWAY_BATCH_NEXT_FRAME";
	
	/**
	 * 批量下架功能缓存记录前缀
	 */
	public static final String UNDERWAY_BATCH_NEXT_FRAMEP = "UNDERWAY_BATCH_NEXT_FRAMEP";
	
	  /**
     * SEO缓存前缀
     */
    public final static String SEO = "SINGLE_PAGE_PRODUCT_ITECODE_";
    
    /**
     * 展馆缓存前缀
     */
    public final static String EXHIBITION = "SINGLE_PAGE_PRODUCT_EXHIBITION_";
    /**
     * 首页商品分类缓存前缀
     */
    public final static String CLASSIFICATION = "SINGLE_PAGE_PRODUCT_CLASSIFICATION_";
    /**
     * 商品信息后台管理分类缓存
     */
    public final static String IMAGE_CATEGORY = "UNDERWAY_GOODS_MANAGER_CATEGORY";
    /**
     * Mall_Message缓存
     */
    public final static String ICACHE_MESSAGE_KEY = "ICACHE_MESSAGE_KEY";
    /**
	 * 电商后台站点信息缓存前缀KEY
	 */
	public static final String MALL_SITE_AFTER_INFO_KEY = "MALL_SITE_AFTER_INFO_KEY";
    /**
     * Mall_Message缓存
     */
    public final static String COOKIE_UUID = "COOKIE_UUID";
    /**
     * (B2B)Mall_Message缓存
     */
    public final static String COOKIE_UUID_B2B = "COOKIE_UUID_B2B";
    /**
     * 询价key
     * 
     */
    public final static String QUOTEDPRICE_COOKIE_UUID = "QUOTEDPRICE_COOKIE_UUID";
    /**
     * Mall_登录key
     */
    public final static String MALL_COOKIE_LOGININFO = "MALL_COOKIE_LOGININFO_";    
    /**
     * (B2B)Mall_登录key
     */
    public final static String MALL_COOKIE_LOGININFO_B2B = "MALL_COOKIE_LOGININFO_B2B";    
    
    /***
     * 公共的seo信息
     */
    public final static String MALL_COMMON_SEO_DATA = "MALL_COMMON_SEO_DATA" ;
    /**
     * 站点 title
     */
    public final static String MALL_SITE_TITLE = "SITE_TILE" ;
    /**
     * 站点keywords 
     */
    public final static String MALL_SITE_KEYWORDS = "SITE_KEYWORDS" ;
    /**
     * 站点description
     */
    public final static String MALL_SITE_DESCRIPTION = "SITE_DESCRIPTION" ;
    /**
     * 列表页title
     */
    public final static String MALL_LIST_PAGE_TITLE = "LIST_PAGE_TITLE" ;
    /**
     * 列表页keywords
     */
    public final static String MALL_LIST_PAGE_KEYWORDS = "LIST_PAGE_KEYWORDS" ;
    /**
     * 列表页description
     */
    public final static String MALL_LIST_PAGE_DESCRIPTION = "LIST_PAGE_DESCRIPTION" ;
    /**
     * 当前页 title
     */
    public final static String MALL_CURRENT_TITLE = "CURRENT_TITLE" ;
    /**
     * 当前页keywords
     */
    public final static String MALL_CURRENT_KEYWORDS = "CURRENT_KEYWORDS" ;
    /**
     *当前页description
     */
    public final static String MALL_CURRENT_DESCRIPTION = "CURRENT_DESCRIPTION" ;
    /**
     *找回密码临时缓存
     */
    public final static String MALL_LOSTPAYPWD_TEMP = "LOSTPAYPWD_TEMP" ;
    /**
     * TODO 临时供应商图片前缀
     */
    public final static String VENDOR_SHOPTAG = "http://192.168.168.13:13000/static/shoptag/" ;
    /**
     * 组件替换前符号
     */
    public final static String COMPONENT_SETTING_REPLACE_PRE = "-" ;
    /**
     *
     * 组件替换后符号
     */
    public final static String COMPONENT_SETTING_REPLACE_AFTER = "$" ;
    
    
    /**
    *
    * 导入订购清单EXCEL数据
    */
   public final static String MALL_UPLOAD_EXCEL = "MALL_UPLOAD_EXCEL_" ;
   
   
   /**
	 * B2B Balance相关金额缓存前缀
	 */
	public static final String MEM_BALANCE_KEY = "MEM_BALANCE_KEY_";
	
	public static final String CAR_TIME_KEY = "CAR_TIME_KEY";
	/**
	 * 商品显示扩展属性
	 */
	public static final String SHOW_EXTEND_ATTR = "SHOW_EXTEND_ATTR" ;	
}
